#pragma once
#include<iostream>
#include<string.h>
#include<assert.h>
using namespace std;


namespace wusaqi
{
	class string
	{
	public:
		//string();
		string(const char* str = "");
		~string();

		const char* c_str();

		size_t size() const;
		char& operator[](size_t i);
		const char& operator[](size_t i) const;
		
	private:
		char* _str;
		size_t _size;
		size_t _capacity;
	};
}

